package com.bawei.lifecycle_test;

import android.app.Application;

import androidx.lifecycle.ProcessLifecycleOwner;

public class App extends Application {



    @Override
    public void onCreate() {
        super.onCreate();
        //添加观察者
        ProcessLifecycleOwner.get().getLifecycle().addObserver(new ApplicationObserver());
    }


}
